From: Keir Fraser Date: Tue, 22 Jun 2010 06:19:38 +0000 (+0100) Subject: perfc: Fix x86_64 build with perfc_arrays=y X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11893 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=39fcc064b1dee4c80999fd54666fbbb716301391;p=xen.git perfc: Fix x86_64 build with perfc_arrays=y Signed-off-by: Keir Fraser --- diff --git a/xen/include/asm-x86/x86_64/asm_defns.h b/xen/include/asm-x86/x86_64/asm_defns.h index df1343f607..7a8cfdbb6a 100644 --- a/xen/include/asm-x86/x86_64/asm_defns.h +++ b/xen/include/asm-x86/x86_64/asm_defns.h @@ -67,8 +67,9 @@ pushq _cur; \ movslq VCPU_processor(_cur),_cur; \ pushq %rdx; \ + leaq __per_cpu_offset(%rip),%rdx; \ + movq (%rdx,_cur,8),_cur; \ leaq per_cpu__perfcounters(%rip),%rdx; \ - movq __per_cpu_offset(,_cur,8),_cur; \ addq %rdx,_cur; \ popq %rdx; \ incl _name*4(_cur,_idx,4); \